/**
 * Kohive.app.DoodleController
 * @extends ExtMVC.Controller
 * Controls the Doodle application
 */
Kohive.app.DoodleController = Ext.extend(Kohive.controllers.KohiveController, {
			name		: 'doodle',

			constructor	: function() {
				Kohive.app.DoodleController.superclass.constructor.call(this, {
							viewsPackage	: Kohive.views.doodle
						});

				// TODO: This is a relic of old MVC, remove it once on ExtMVC 0.6 or above
				this.registerAction('index', this.index);
			},

			/**
			 * @action index 
			 * Renders the index view
			 */
			index		: function() {
				this.renderView('index', {
							closeAction	: 'hide',
							autoShow	: true
						}).show();

				this.fireEvent('index');
			}
		});

ExtMVC.OS.getOS().registerController('doodle', Kohive.app.DoodleController);